<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" session="false" %>
<%
	String path = request.getContextPath();
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Home</title>
<!-- ExtJS 样式 -->
<link rel="stylesheet" type="text/css" href="${path}/script/extjs-3.2.1/resources/css/ext-all.css" />
<!-- 先引入底层驱动，一般用ext自己的，如果要使用jquery的，还要先引入jquery库 -->
<script type="text/javascript" src="${path}/script/extjs-3.2.1/adapter/ext/ext-base.js"></script>
<!-- ExtJs all -->
<script type="text/javascript" src="${path}/script/extjs-3.2.1/ext-all.js"></script>
</head>
<body>
<div id="d1"></div>
<script type="text/javascript">
Ext.onReady(function(){
	// Ext.menu.Menu
	var panel = new Ext.Panel({
		title: "aaa",
		height: 400,
		width: 500,
		tbar: [{text: "添加", menu: {items:[{text: "菜单1", menu: {items: [{text: "菜单11"}]}}, "-", {text: "菜单2"}]}}, "->", {text: "查询"}, "-", "请输入姓名", new Ext.form.TextField()]
	});
	panel.render("d1");
});
</script>
</body>
</html>
